package com.zkingsoft.laqeelin.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.matrix.core.anotations.Extend;
import com.zkingsoft.common.bean.EntityDTOExt;

/**
 * @description (订单表)
 * @author 何明
 * @date 2018-09-01 10:35
 */
public class BizOrder  extends EntityDTOExt{
	@Extend
	private static final long serialVersionUID = 1L; 

	
	/**
	 * 主键
	 */
	private String  orderId;
			
	
	/**
	 * 类型 (1：分享  2：助力)
	 */
	private Integer  orderType;
			
	
	/**
	 * 分享ID
	 */
	private String  shareId;
			
	
	/**
	 * 助力活动ID
	 */
	private String  hacId;
			
	
	/**
	 * 领取人ID
	 */
	private String  userId;
			
	
	/**
	 * 消费码
	 */
	private String  orderCode;
			
	
	/**
	 * 联系人
	 */
	private String  userName;
			
	
	/**
	 * 手机号码
	 */
	private String  userPhone;
			
	
	/**
	 * 状态（1:已领取  2：已消费  3：已失效）
	 */
	private Integer  orderStatus;
			
	
	/**
	 * 奖品名称
	 */
	private String  prizeName;
			
	
	/**
	 * 奖品图片
	 */
	private String  prizeImg;
			
	
	/**
	 * 使用失效时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")  
	private Date  useTime;
			
	
	/**
	 * 备注
	 */
	private String  orderRemark;
	
	/**
	 * 活动名称
	 */
	@Extend
	private String  hacName;
	
	
	/**
	 * 用户昵称
	 */
	@Extend
	private String  nickName;

	/**
	 * 奖品价格
	 */
	private String  prizePrice;
	
	
	/**
	 * formId
	 */
	@Extend
	private String  formId;
	
	
	
	public String getFormId() {
		return formId;
	}

	public void setFormId(String formId) {
		this.formId = formId;
	}

	public String getPrizePrice() {
		return prizePrice;
	}

	public void setPrizePrice(String prizePrice) {
		this.prizePrice = prizePrice;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getHacName() {
		return hacName;
	}

	public void setHacName(String hacName) {
		this.hacName = hacName;
	}

	public String getOrderId() {
			if(orderId==null){
			return "";
   		}
		
		return orderId;
	}
   	
   	public void setOrderId(String orderId) {
		this.orderId=orderId;
	}
   	

	public Integer getOrderType() {
		
		return orderType;
	}
   	
   	public void setOrderType(Integer orderType) {
		this.orderType=orderType;
	}
   	

	public String getShareId() {
			if(shareId==null){
			return "";
   		}
		
		return shareId;
	}
   	
   	public void setShareId(String shareId) {
		this.shareId=shareId;
	}
   	

	public String getHacId() {
			if(hacId==null){
			return "";
   		}
		
		return hacId;
	}
   	
   	public void setHacId(String hacId) {
		this.hacId=hacId;
	}
   	

	public String getUserId() {
			if(userId==null){
			return "";
   		}
		
		return userId;
	}
   	
   	public void setUserId(String userId) {
		this.userId=userId;
	}
   	

	public String getOrderCode() {
			if(orderCode==null){
			return "";
   		}
		
		return orderCode;
	}
   	
   	public void setOrderCode(String orderCode) {
		this.orderCode=orderCode;
	}
   	

	public String getUserName() {
			if(userName==null){
			return "";
   		}
		
		return userName;
	}
   	
   	public void setUserName(String userName) {
		this.userName=userName;
	}
   	

	public String getUserPhone() {
			if(userPhone==null){
			return "";
   		}
		
		return userPhone;
	}
   	
   	public void setUserPhone(String userPhone) {
		this.userPhone=userPhone;
	}
   	

	public Integer getOrderStatus() {
		
		return orderStatus;
	}
   	
   	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus=orderStatus;
	}
   	

	public String getPrizeName() {
			if(prizeName==null){
			return "";
   		}
		
		return prizeName;
	}
   	
   	public void setPrizeName(String prizeName) {
		this.prizeName=prizeName;
	}
   	

	public String getPrizeImg() {
			if(prizeImg==null){
			return "";
   		}
		
		return prizeImg;
	}
   	
   	public void setPrizeImg(String prizeImg) {
		this.prizeImg=prizeImg;
	}
   	

	/*public String getUseTime() {
		SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd"); 
		String time=format.format(useTime);
		return time;
	}*/
   	
   	public Date getUseTime() {
		return useTime;
	}

	public void setUseTime(Date useTime) {
		this.useTime=useTime;
	}
   	

	public String getOrderRemark() {
			if(orderRemark==null){
			return "";
   		}
		
		return orderRemark;
	}
   	
   	public void setOrderRemark(String orderRemark) {
		this.orderRemark=orderRemark;
	}
   	


  
}